// Logprocess.h: interface for the CLogprocess class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_LOGPROCESS_H__84E83D78_AC29_49F0_A2B1_A02699041570__INCLUDED_)
#define AFX_LOGPROCESS_H__84E83D78_AC29_49F0_A2B1_A02699041570__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CLogprocess  
{
public:
	void WriteSystemClockLog(CString strLog);
	CString GetSystemClock();
	CLogprocess(CString FileName, BOOL flgEveryOneDay=FALSE, BOOL flgMilliSes=FALSE, int nDuration=30, int nMaxLine=5000);
	virtual ~CLogprocess();
	void WriteLog(CString strLog);
	CString GetTime();
	CString GetDate();
	CString MakeLogString(CString strLog);
private:
	CString GetTimeData();
	CString GetDateData();
	CString MakeFileName(CString Date, CString Time);
	CString m_strFoldName;
	CString m_strFileName;
	CString m_strDate;
	void AutoDeleteFile(CString Target, int Duration);

	int m_nItemCount;
	int m_nFileCount;

	int m_nMaxLine;
	int m_nDuration;
	BOOL m_flgEveryOneDay;
	BOOL m_flgMilliSec;
	
	FILE* m_pFile;
};

#endif // !defined(AFX_LOGPROCESS_H__84E83D78_AC29_49F0_A2B1_A02699041570__INCLUDED_)
